//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package objects;

import java.util.ArrayList;
import java.util.List;

public class LogicEventDataEntry {
    private final String Event;
    private final String GoodReward;
    private final Integer GoodAmount;
    private final List<Integer> Group = new ArrayList();

    public LogicEventDataEntry(String Event, String GoodData, Integer GoodAmount) {
        this.Event = Event;
        this.GoodReward = GoodData;
        this.GoodAmount = GoodAmount;
    }

    public String getEvent() {
        return this.Event;
    }

    public String getGoodReward() {
        return this.GoodReward;
    }

    public Integer getGoodAmount() {
        return this.GoodAmount;
    }

    public void initGroup(List<Integer> gl) {
        this.Group.addAll(gl);
    }

    public Integer getByGroup(int gIndex) {
        return gIndex < this.Group.size()?(Integer)this.Group.get(gIndex):null;
    }

    public Integer getGroupSize() {
        return Integer.valueOf(this.Group.size());
    }

    public Integer getWeight(Long id) {
        int groupIndex = (int)id.longValue() % this.Group.size();
        return (Integer)this.Group.get(groupIndex);
    }

    public String toString() {
        return this.Event + ", GoodReward:" + this.GoodReward + ", GoodAmount:" + this.GoodAmount + ", Group:" + this.Group;
    }
}
